<?php

namespace App\ZhCN\Api;

if (!defined('IN_PX'))
    exit;


use App\Service;
use App\Repository;
use Phoenix\Http\RequestMethod;
use Phoenix\Support\MsgHelper;
use App\Tools\Auxi;
use App\Tools\Html;
use Phoenix\Log\Log4p as logger;

class Territory {

    private function __RestController() {
    }

    private function __Route($value = '/api/territory') {
    }

    private function __Value($__PACKAGE__, $__ROOT__, $__RM__, $setting, $cfg, $__LANGUAGE_ID__) {}

    protected function __Inject($session, $db, $cache, Repository\Archives $repoArc) {}

    /**
     * @Title: login
     * @Description: TODO 用户登录
     * @return array
     * @author WangSHuo
     * @date
     */
    public function find($__Method = RequestMethod::POST) {
        $_return = $this->repoArc->findCertificate(3, $_POST['type'], $_POST['title']);
        return  MsgHelper::err(0, 'ok!', array('rsp' => $_return));
    }

}
